package com.ftg.learn.chapter08.ex;

import java.util.Queue;

/**
 * @author kangjx
 * @createTime 2023/1/10
 */
public class Qestion {

    public void info(Human human) {
        System.out.println(human.getAddress());
        human.setAddress("江北");
        System.out.println(human.getAddress());
    }

    public int add(int x, int y) {
        return x + y;
    }

    public static void main(String[] args) {
        Qestion q = new Qestion();
        int x = 2;
        int y = 3;
        int sum = q.add(x, y);
        System.out.println(sum);
        System.out.println(x);
        System.out.println(y);

        Human h = new Human();
        h.setAddress("江南");
        q.info(h);

        System.out.println(h.getAddress());

    }

}
